package com.han.decorator;

/**
 * @ClassName Client
 * @Description 用户类
 * @Author duoduo Han
 * @Date 2024/6/6 21:44
 */
public class Client {
    public static void main(String[] args) {
        FastFood food = new Egg(new FriedRice());
        System.out.println(food.getDesc()+"············￥"+food.cost());
        System.out.println("===================加个鸡蛋===================");
        food = new Egg(food);
        System.out.println(food.getDesc()+"············￥"+food.cost());
        food = new Bacon(food);
        System.out.println("===================加个培根===================");
        System.out.println(food.getDesc()+"············￥"+food.cost());


    }
}
